inherited FPesquisaPedido: TFPesquisaPedido
  Left = 513
  Top = 236
  Caption = 'Pesquisa Posi'#231#227'o dos Pedido'
  ClientHeight = 372
  OldCreateOrder = True
  PixelsPerInch = 96
  TextHeight = 13
  inherited Panel2: TPanel
    inherited BtnLimpar: TBitBtn
      OnClick = BtnLimparClick
    end
    inherited BtnImprimir: TBitBtn
      OnClick = BtnImprimirClick
    end
    inherited BtnSelecionar: TBitBtn
      OnClick = BtnSelecionarClick
    end
  end
  inherited Panel1: TPanel
    Height = 331
    object Label2: TLabel [0]
      Left = 5
      Top = 86
      Width = 54
      Height = 13
      Caption = 'Fornecedor'
    end
    object Label9: TLabel [1]
      Left = 182
      Top = 3
      Width = 23
      Height = 13
      Caption = 'Data'
    end
    object Label6: TLabel [2]
      Left = 271
      Top = 22
      Width = 6
      Height = 13
      Caption = 'a'
    end
    object Label10: TLabel [3]
      Left = 5
      Top = 147
      Width = 46
      Height = 13
      Caption = 'Empresas'
    end
    object Label1: TLabel [4]
      Left = 5
      Top = 3
      Width = 33
      Height = 13
      Caption = 'Pedido'
    end
    object Label3: TLabel [5]
      Left = 82
      Top = 22
      Width = 6
      Height = 13
      Caption = 'a'
    end
    inherited DBGrid1: TDBGrid
      Top = 205
      TabOrder = 9
      Columns = <
        item
          Expanded = False
          FieldName = 'PED_CODIGO'
          Title.Caption = 'Pedido'
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'PED_DATA'
          Title.Caption = 'Data'
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'FORN_RAZAO'
          Title.Caption = 'Fornecedor'
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'PED_DATAENTREGA'
          Title.Caption = 'Data Entrega'
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'PED_NF'
          Title.Caption = 'Nota Fiscal'
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'PED_SITUACAO'
          Title.Caption = 'Situa'#231#227'o Pedido'
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'TRANS_NOME'
          Title.Caption = 'Transportadora'
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'PROD_DESCRICAOENT'
          Title.Caption = 'Produto'
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'PROD_REFERENCIA'
          Title.Caption = 'Referencia'
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'ITENS_PED_QUANTIDADE'
          Title.Caption = 'Quantidade'
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'ITENS_PED_QUANTIDADEATEN'
          Title.Caption = 'Quantidade Atendida'
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'ITENS_PED_VALOR'
          Title.Caption = 'Valor unit'#225'rio'
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'ITENS_PED_SITUACAO'
          Title.Caption = 'Situa'#231#227'o Item'
          Visible = True
        end>
    end
    inherited Panel3: TPanel
      Top = 310
      TabOrder = 10
    end
    object DBLCBFornecedor: TDBLookupComboBox
      Left = 5
      Top = 100
      Width = 365
      Height = 21
      KeyField = 'FORN_CODIGO'
      ListField = 'FORN_RAZAO'
      ListSource = DSFornecedor
      TabOrder = 6
      OnKeyDown = DBLCBFornecedorKeyDown
    end
    object DEDataIni: TDateEdit
      Left = 182
      Top = 18
      Width = 88
      Height = 21
      NumGlyphs = 2
      TabOrder = 2
    end
    object DEDataFim: TDateEdit
      Left = 279
      Top = 18
      Width = 88
      Height = 21
      NumGlyphs = 2
      TabOrder = 3
    end
    object CkBTodasEmpresas: TCheckBox
      Left = 5
      Top = 129
      Width = 118
      Height = 17
      Caption = 'Todas as Empresas'
      TabOrder = 7
      OnClick = CkBTodasEmpresasClick
    end
    object CLBEmpresas: TCheckListBox
      Left = 1
      Top = 165
      Width = 409
      Height = 40
      Align = alBottom
      Columns = 1
      ItemHeight = 13
      TabOrder = 8
    end
    object EPedidoIni: TEdit
      Left = 5
      Top = 18
      Width = 73
      Height = 21
      TabOrder = 0
    end
    object EPedidoFim: TEdit
      Left = 95
      Top = 18
      Width = 73
      Height = 21
      TabOrder = 1
    end
    object RGSituacaoItempedido: TRadioGroup
      Left = 179
      Top = 39
      Width = 164
      Height = 46
      Caption = 'Situa'#231#227'o Item'
      Columns = 2
      ItemIndex = 2
      Items.Strings = (
        'Em aberto'
        'Encerrado'
        'Todos')
      TabOrder = 5
    end
    object RGSituacaoPedido: TRadioGroup
      Left = 5
      Top = 39
      Width = 164
      Height = 46
      Caption = 'Situa'#231#227'o Pedido'
      Columns = 2
      ItemIndex = 2
      Items.Strings = (
        'Em aberto'
        'Encerrado'
        'Todos')
      TabOrder = 4
    end
  end
  inherited QPesquisa: TQuery
    SQL.Strings = (
      
        'select Ped_Codigo,Ped_data,PED_DATAENTREGA,Ped_NF,Ped_Situacao,F' +
        'orn_Razao,Trans_Nome,Prod_Codigo,Prod_DescricaoEnt, Prod_Referen' +
        'cia, Prod_UnidSaida,             Itens_Ped_Quantidade,Itens_Ped_' +
        'QuantidadeAten,Itens_Ped_Valor,Itens_Ped_Situacao'
      
        'from  Fornecedor Inner join (Transportadora inner join ( Pedido ' +
        'Left Join ( ItensPedido left join Produto on Itens_Ped_Produto =' +
        ' Prod_Codigo) on Ped_Codigo = Itens_ped_Pedido)  on Trans_Codigo' +
        ' = Ped_Transportadora ) on Forn_Codigo = Ped_Fornecedor'
      'Group by'
      
        'Forn_Razao,Ped_Codigo,Ped_data,Ped_NF,PED_DATAENTREGA,Ped_Situac' +
        'ao,Trans_Nome,Prod_Codigo,Prod_DescricaoEnt, Prod_Referencia, Pr' +
        'od_UnidSaida,'
      
        'Itens_Ped_Quantidade,Itens_Ped_QuantidadeAten,Itens_Ped_Valor,It' +
        'ens_Ped_Situacao'
      ''
      ''
      ';')
    Left = 200
    Top = 169
  end
  inherited DSPesquisa: TDataSource
    Left = 232
    Top = 169
  end
  object DSFornecedor: TDataSource
    DataSet = DMGestao.QFornecedor
    Left = 288
    Top = 128
  end
end
